<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <meta name="Author" contect="http://www.webqin.net">
    <title>尚好房</title>
    <link rel="shortcut icon" href="./static/images/favicon.ico"/>
    <link type="text/css" href="./static/css/css.css" rel="stylesheet"/>
    <script type="text/javascript" src="./static/js/jquery.js"></script>
    <script type="text/javascript" src="./static/js/js.js"></script>
    <script src="./static/js/vue.js"></script>
    <script src="./static/js/axios.js"></script>
    <script type="text/javascript">
        $(function () {
            //导航定位
            $(".nav li:eq(1)").addClass("navCur");
        })
    </script>
</head>

<body>
<div id="list">
    <div class="header">
        <div class="width1190">
            <div class="fl">您好，欢迎来到尚好房！</div>
            <div class="fr">
                <a href="login.html">登录</a> |
                <a href="register.html">注册</a> |
                <a href="javascript:;">加入收藏</a> |
                <a href="javascript:;">设为首页</a>
            </div>
            <div class="clears"></div>
        </div><!--width1190/-->
    </div>
    <div class="list-nav">
        <div class="width1190">
            <div class="list"><h3>房源分类</h3></div><!--list/-->
            <ul class="nav">
                <li><a href="index2.html">首页</a></li>
                <li><a href="about.html">关于我们</a></li>
                <li><a href="contact.html">联系我们</a></li>
                <div class="clears"></div>
            </ul><!--nav/-->
            <div class="clears"></div>
        </div><!--width1190/-->
    </div><!--list-nav/-->
    <div class="banner" style="background:url(./static/images/ban.jpg) center center no-repeat;"></div>

    <div class="content">
        <div class="width1190">
            <form action="#" method="get" class="pro-search">
                <table>
                    <tr>
                        <th>房源区域：</th>
                        <td>
                            <div style="line-height: 30px;">
                                <a href="javascript:;" class="pro-cur">不限</a>
                                <a href="javascript:;">智慧园</a>
                                <a href="javascript:;">立民村</a>
                                <a href="javascript:;">塘口村</a>
                                <a href="javascript:;">勤劳村</a>
                                <a href="javascript:;">芦胜村</a>
                                <a href="javascript:;">知新村1</a>
                            </div>
                            <!--新增区域-->
                            <div style="font-size: 12px;border-top:#ccc 1px dotted;">
                                <a href="javascript:;">锦江</a>
                                <a href="javascript:;">青羊</a>
                                <a href="javascript:;">武侯</a>
                                <a href="javascript:;">高新</a>
                                <a href="javascript:;">成华</a>
                                <a href="javascript:;">金牛</a>
                                <a href="javascript:;">天府新区</a>
                                <a href="javascript:;">高新西</a>
                                <a href="javascript:;">双流</a>
                                <a href="javascript:;">温江</a>
                                <a href="javascript:;">郫都</a>
                                <a href="javascript:;">龙泉驿</a>
                                <a href="javascript:;">新都</a>
                                <a href="javascript:;">天府新区南区</a>
                                <a href="javascript:;">青白江</a>
                                <a href="javascript:;">都江堰</a>
                                <a href="javascript:;">鹏都</a>
                                <a href="javascript:;">简阳</a>
                                <a href="javascript:;">新津</a>
                                <a href="javascript:;">崇州</a>
                                <a href="javascript:;">大邑</a>
                                <a href="javascript:;">金堂</a>
                                <a href="javascript:;">浦江</a>
                                <a href="javascript:;">邛崃</a>
                            </div>
                        </td>
                    </tr>
                    <tr>
                        <th>房型：</th>
                        <td>
                            <a href="javascript:;" class="pro-cur">不限</a>
                            <a href="javascript:;">一室一厅</a>
                            <a href="javascript:;">两室一厅</a>
                            <a href="javascript:;">3室一厅</a>
                            <a href="javascript:;">一室一厅一卫</a>
                        </td>
                    </tr>
                    <tr>
                        <th>价格：</th>
                        <td>
                            <a href="javascript:;" class="pro-cur">不限</a>
                            <a href="javascript:;">500-1000</a>
                            <a href="javascript:;">10001-2000</a>
                            <a href="javascript:;">2001-3000</a>
                            <a href="javascript:;">3001-4000</a>
                            <input type="text" class="protext"/> - <input type="text" class="protext"/> 元
                            <input type="submit" class="proSub" value="确定"/>
                        </td>
                    </tr>
                    <tr>
                        <th>面积：</th>
                        <td>
                            <a href="javascript:;" class="pro-cur">不限</a>
                            <a href="javascript:;">10平方</a>
                            <a href="javascript:;">20-40平方</a>
                            <a href="javascript:;">41-60平方</a>
                            <a href="javascript:;">61-80平方</a>
                            <a href="javascript:;">100平方以上</a>
                        </td>
                    </tr>
                </table>
                <div class="paixu">
                    <strong>排序：</strong>
                    <a href="javascript:;" class="pai-cur">默认</a>
                    <a href="javascript:;">价格 &or;</a>
                    <a href="javascript:;">最新 &or;</a>
                </div>
            </form><!--pro-search/-->
        </div><!--width1190/-->
        <div class="width1190">
            <div class="pro-left">
                <dl>
                    <dt><a href="../../info.html"><img src="./static/images/fang1.jpg" width="286" height="188"/></a></dt>
                    <dd>
                        <h3><a href="../../info.html">中装一室一厅，楼层好，采光足，稀缺房源</a></h3>
                        <div class="pro-wei">
                            <img src="./static/images/weizhi.png" width="12" height="16"/> <strong
                                class="red">智慧园</strong>
                        </div>
                        <div class="pro-fang">100.00平 两室 高楼层 普通装修</div>
                        <div class="pra-fa">发布时间：2020-12-03</div>
                    </dd>
                    <div class="price">¥ <strong>290</strong><span class="font12">万元</span></div>
                    <div class="clears"></div>
                </dl>
                <dl>
                    <dt><a href="../../info.html"><img src="./static/images/fang1.jpg" width="286" height="188"/></a></dt>
                    <dd>
                        <h3><a href="../../info.html">中装一室一厅，楼层好，采光足，稀缺房源</a></h3>
                        <div class="pro-wei">
                            <img src="./static/images/weizhi.png" width="12" height="16"/> <strong
                                class="red">智慧园</strong>
                        </div>
                        <div class="pro-fang">100.00平 两室 高楼层 普通装修</div>
                        <div class="pra-fa">发布时间：2020-12-03</div>
                    </dd>
                    <div class="price">¥ <strong>290</strong><span class="font12">万元</span></div>
                    <div class="clears"></div>
                </dl>
                <dl>
                    <dt><a href="../../info.html"><img src="./static/images/fang1.jpg" width="286" height="188"/></a></dt>
                    <dd>
                        <h3><a href="../../info.html">中装一室一厅，楼层好，采光足，稀缺房源</a></h3>
                        <div class="pro-wei">
                            <img src="./static/images/weizhi.png" width="12" height="16"/> <strong
                                class="red">智慧园</strong>
                        </div>
                        <div class="pro-fang">100.00平 两室 高楼层 普通装修</div>
                        <div class="pra-fa">发布时间：2020-12-03</div>
                    </dd>
                    <div class="price">¥ <strong>290</strong><span class="font12">万元</span></div>
                    <div class="clears"></div>
                </dl>
                <dl>
                    <dt><a href="../../info.html"><img src="./static/images/fang1.jpg" width="286" height="188"/></a></dt>
                    <dd>
                        <h3><a href="../../info.html">中装一室一厅，楼层好，采光足，稀缺房源</a></h3>
                        <div class="pro-wei">
                            <img src="./static/images/weizhi.png" width="12" height="16"/> <strong
                                class="red">智慧园</strong>
                        </div>
                        <div class="pro-fang">100.00平 两室 高楼层 普通装修</div>
                        <div class="pra-fa">发布时间：2020-12-03</div>
                    </dd>
                    <div class="price">¥ <strong>290</strong><span class="font12">万元</span></div>
                    <div class="clears"></div>
                </dl>
                <dl>
                    <dt><a href="../../info.html"><img src="./static/images/fang1.jpg" width="286" height="188"/></a></dt>
                    <dd>
                        <h3><a href="../../info.html">中装一室一厅，楼层好，采光足，稀缺房源</a></h3>
                        <div class="pro-wei">
                            <img src="./static/images/weizhi.png" width="12" height="16"/> <strong
                                class="red">智慧园</strong>
                        </div>
                        <div class="pro-fang">100.00平 两室 高楼层 普通装修</div>
                        <div class="pra-fa">发布时间：2020-12-03</div>
                    </dd>
                    <div class="price">¥ <strong>290</strong><span class="font12">万元</span></div>
                    <div class="clears"></div>
                </dl>
            </div><!--pro-left/-->
            <div class="pro-right">
                <h2 class="right-title">新上房源</h2>
                <div class="right-pro">
                    <dl>
                        <dt><a href="../../info.html"><img src="./static/images/fang8.jpg"/></a></dt>
                        <dd>
                            <h3><a href="../../info.html">中装一室一厅，楼层好，采光足，稀缺房源</a></h3>
                            <div class="pro-fang">一室一厅 38平 南</div>
                            <div class="right-price">90万元</div>
                        </dd>
                    </dl>
                    <dl>
                        <dt><a href="../../info.html"><img src="./static/images/fang7.jpg"/></a></dt>
                        <dd>
                            <h3><a href="../../info.html">中装两室，楼层好，采光足，稀缺房源</a></h3>
                            <div class="pro-fang">两室一厅 78平 南</div>
                            <div class="right-price">130万元</div>
                        </dd>
                    </dl>
                    <dl>
                        <dt><a href="../../info.html"><img src="./static/images/fang6.jpg"/></a></dt>
                        <dd>
                            <h3><a href="../../info.html">中装三室，楼层好，采光足，稀缺房源</a></h3>
                            <div class="pro-fang">三室一厅 98平 南</div>
                            <div class="right-price">190万元</div>
                        </dd>
                    </dl>
                </div><!--right-pro/-->
            </div><!--pro-right/-->
            <div class="clears"></div>
            <ul class="pages">
                <!--<li>
                    <a href="#">首页</a>
                </li>-->
                <li>
                    <a href="#">上一页</a>
                </li>
                <li>
                    <a href="#">1</a>
                </li>
                <li class="page_active">
                    <a href="#">2</a>
                </li>
                <li>
                    <a href="#">3</a>
                </li>
                <li>
                    <a href="#">4</a>
                </li>
                <li>
                    <a href="#">5</a>
                </li>
                <li>
                    <span>...</span>
                </li>
                <li>
                    <a href="#">999</a>
                </li>
                <li>
                    <a href="#">下一页</a>
                </li>
                <!--<li>
                    <a href="#">尾页</a>
                </li>-->
            </ul>
        </div><!--width1190/-->
    </div><!--content/-->

    <div class="footer">
        <div class="width1190">
            <div class="fl"><a href="index2.html"><strong>尚好房</strong></a><a href="about.html">关于我们</a><a
                    href="contact.html">联系我们</a><a href="follow.html">个人中心</a></div>
            <div class="fr">
                <dl>
                    <dt><img src="./static/images/erweima.png" width="76" height="76"/></dt>
                    <dd>微信扫一扫<br/>房价点评，精彩发布</dd>
                </dl>
                <dl>
                    <dt><img src="./static/images/erweima.png" width="76" height="76"/></dt>
                    <dd>微信扫一扫<br/>房价点评，精彩发布</dd>
                </dl>
                <div class="clears"></div>
            </div>
            <div class="clears"></div>
        </div><!--width1190/-->
    </div><!--footer/-->
    <div class="copy">Copyright@ 2020 尚好房 版权所有 沪ICP备1234567号-0&nbsp;&nbsp;&nbsp;&nbsp;技术支持：XXX</div>
    <div class="bg100"></div>
</div>

<script>
    new Vue({
        el: '#list',

        data: {
            areaList: [],
            plateList: [],
            houseTypeList: [],
            floorList: [],
            buildStructureList: [],
            directionList: [],
            decorationList: [],
            houseUseList: []
        },

        created() {
            this.fetchDictData()
        },

        methods: {
            fetchDictData() {
                //axios在then的内部不能使用Vue的实例化的this, 因为在内部 this 没有被绑定
                var that = this
                axios.get('/dict/findListByDictCode/beijing').then(function (response) {
                    that.areaList = response.data.data
                });
                axios.get('/dict/findListByDictCode/houseType').then(function (response) {
                    that.houseTypeList = response.data.data
                });
                axios.get('/dict/findListByDictCode/floor').then(function (response) {
                    that.floorList = response.data.data
                });
                axios.get('/dict/findListByDictCode/buildStructure').then(function (response) {
                    that.buildStructureList = response.data.data
                });
                axios.get('/dict/findListByDictCode/direction').then(function (response) {
                    that.directionList = response.data.data
                });
                axios.get('/dict/findListByDictCode/decoration').then(function (response) {
                    that.decorationList = response.data.data
                });
                axios.get('/dict/findListByDictCode/houseUse').then(function (response) {
                    that.houseUseList = response.data.data
                });
            }
        }
    })
</script>

</body>
</html>
